package com.linx.system.domain.bo;

import com.linx.common.core.validate.AddGroup;
import com.linx.common.core.validate.EditGroup;
import com.linx.system.domain.SysUserGroup;
import io.github.linpeilie.annotations.AutoMapper;
import jakarta.validation.constraints.NotBlank;
import jakarta.validation.constraints.NotNull;
import lombok.Data;

import java.util.List;

/**
 * 人员群组业务对象 user_group
 *
 * @author 泽智科技
 * @date 2024-10-02
 */
@Data
@AutoMapper(target = SysUserGroup.class, reverseConvertGenerate = false)
public class SysUserGroupBo {

    /**
     * 主键
     */
    @NotNull(message = "主键不能为空", groups = { EditGroup.class })
    private Long userGroupId;

    /**
     * 备注
     */
    private String remark;

    /**
     * 组名称
     */
    @NotBlank(message = "组名称不能为空", groups = { AddGroup.class })
    private String groupName;

    /**
     * 人员ID列表
     */
    private List<Long> userIds;

    private String userName;

}
